package com.example.takeoff.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.takeoff.common.Result;
import com.example.takeoff.entity.DDL;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DDLService extends IService<DDL>
{
    List<DDL> getByUserid(String userid);

    boolean modify(DDL ddl);

    IPage<DDL> getPage(int currentPage, int pageSize);

    IPage<DDL> getPage(int currentPage, int pageSize, DDL ddl);

    List<DDL> getClassifiedDDL(String userid);

    Result delete(int id);

    Result classify(int id);

    Result recover(int id);

}
